﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Praxis.UI
{
    public partial class FrmMenu : Form
    {
        public FrmMenu()
        {
            InitializeComponent();
        }

        

        private void buscarClienteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmCliente frm = new FrmCliente();
            frm.MdiParent = this;
            frm.Show();
            
        }

        private void buscarEquipoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmEquipos frm = new FrmEquipos();
            frm.MdiParent = this;
            frm.Show();
        }

        private void buscarAlquilerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmAlquiler frm = new FrmAlquiler();
            frm.MdiParent = this;
            frm.Show();
        }

        private void buscarObraToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmObra frm = new FrmObra();
            frm.MdiParent = this;
            frm.Show();
        }

        private void buscarEntregaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmEntrega frm = new FrmEntrega();
            frm.MdiParent = this;
            frm.Show();
        }

        private void buscarDevoluciónToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmDevolucion frm = new FrmDevolucion();
            frm.MdiParent = this;
            frm.Show();
        }

        private void buscarPagoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmPagos frm = new FrmPagos();
            frm.MdiParent = this;
            frm.Show();
        }

        private void registrarEquipoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmMttoEquipo frm = new FrmMttoEquipo();
            frm.Nuevo();
            frm.MdiParent = this;
            frm.Show();
        }

        private void registrarClienteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmMttoCliente frm = new FrmMttoCliente();
            frm.Nuevo();
            frm.MdiParent = this;
            frm.Show();
        }

        private void registrarObraToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmMttoObra frm = new FrmMttoObra();
            frm.Nuevo();
            frm.MdiParent = this;
            frm.Show();
        }

        private void registrarAlquilerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmMttoAlquiler frm = new FrmMttoAlquiler();
            frm.Nuevo();
            frm.MdiParent = this;
            frm.Show();
        }

        private void registrarEntregaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmMttoEntrega frm = new FrmMttoEntrega();
            frm.Nuevo();
            frm.MdiParent = this;
            frm.Show();
        }

        private void registrarDevoluciónToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmMttoDevolucion frm = new FrmMttoDevolucion();
            //frm.Nuevo();
            frm.MdiParent = this;
            frm.Show();
        }

        private void registrarPagoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmMttoPago frm = new FrmMttoPago();
            frm.MdiParent = this;
            frm.Show();
        }

        private void FrmMenu_Load(object sender, EventArgs e)
        {

        }

        private void cerrarSesionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Login log = new Login();
            log.Show();
            this.Hide();
        }

        private void salirToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void comprobantesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            
        }

        private void registraComprobanteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmMttoComprobante frm = new FrmMttoComprobante();
            frm.MdiParent = this;
            frm.Show();
        }

        private void buscarComprobanteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmComprobantes frm = new FrmComprobantes();
            frm.MdiParent = this;
            frm.Show();
        }

        private void registrarComprobanteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmMttoComprobante frm = new FrmMttoComprobante();
            frm.MdiParent = this;
            frm.Show();
        }

        private void busEquipo_Click(object sender, EventArgs e)
        {
            FrmEquipos frm = new FrmEquipos();
            frm.MdiParent = this;
            frm.Show();
        }

        private void regEquipo_Click(object sender, EventArgs e)
        {
            FrmMttoEquipo frm = new FrmMttoEquipo();
            frm.Nuevo();
            frm.MdiParent = this;
            frm.Show();
        }

        private void busCliente_Click(object sender, EventArgs e)
        {
            FrmCliente frm = new FrmCliente();
            frm.MdiParent = this;
            frm.Show();
        }

        private void regCliente_Click(object sender, EventArgs e)
        {
            FrmMttoCliente frm = new FrmMttoCliente();
            frm.Nuevo();
            frm.MdiParent = this;
            frm.Show();
        }

        private void busObra_Click(object sender, EventArgs e)
        {
            FrmObra frm = new FrmObra();
            frm.MdiParent = this;
            frm.Show();
        }

        private void regObra_Click(object sender, EventArgs e)
        {
            FrmMttoObra frm = new FrmMttoObra();
            frm.Nuevo();
            frm.MdiParent = this;
            frm.Show();
        }

        private void busAlquiler_Click(object sender, EventArgs e)
        {
            FrmAlquiler frm = new FrmAlquiler();
            frm.MdiParent = this;
            frm.Show();
        }

        private void regAlquiler_Click(object sender, EventArgs e)
        {
            FrmMttoAlquiler frm = new FrmMttoAlquiler();
            frm.Nuevo();
            frm.MdiParent = this;
            frm.Show();
        }

        private void busEntrega_Click(object sender, EventArgs e)
        {
            FrmEntrega frm = new FrmEntrega();
            frm.MdiParent = this;
            frm.Show();
        }

        private void regEntrega_Click(object sender, EventArgs e)
        {
            FrmMttoEntrega frm = new FrmMttoEntrega();
            frm.Nuevo();
            frm.MdiParent = this;
            frm.Show();
        }

        private void busDevolucion_Click(object sender, EventArgs e)
        {
            FrmDevolucion frm = new FrmDevolucion();
            frm.MdiParent = this;
            frm.Show();
        }

        private void regDevolucion_Click(object sender, EventArgs e)
        {
            FrmMttoDevolucion frm = new FrmMttoDevolucion();
            frm.MdiParent = this;
            frm.Show();
        }

        private void salir_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void busComprobante_Click(object sender, EventArgs e)
        {
            FrmComprobantes frm = new FrmComprobantes();
            frm.MdiParent = this;
            frm.Show();
        }

        private void busPago_Click(object sender, EventArgs e)
        {
            FrmPagos frm = new FrmPagos();
            frm.MdiParent = this;
            frm.Show();
        }

        private void regPago_Click(object sender, EventArgs e)
        {
            FrmMttoPago frm = new FrmMttoPago();
            frm.MdiParent = this;
            frm.Show();
        }
    }
}
